import QtQuick 2.12
import QtQuick.Controls 2.5
import QtQuick.Window 2.14
import QtGraphicalEffects 1.14

ApplicationWindow{
    visible: true
    title: qsTr("AoDeLi-UI")
    width: 1024
    height: 600
    maximumWidth: 1024
    maximumHeight: 600
    x: Screen.width / 2 - width / 2
    y: Screen.height / 2 - height / 2

    background: Rectangle{
        LinearGradient{
            anchors.fill: parent
            source: parent
            start: Qt.point(width, 0)
            end: Qt.point(0, height)
            gradient: Gradient {
                GradientStop {  position: 0.0;    color: "#24CFC5" }
                GradientStop {  position: 1.0;    color: "#001C63" }
            }
        }
    }

    //visibility : Window.FullScreen
    //flags: Qt.Window | Qt.WindowStaysOnTopHintQt | Qt.FramelessWindowHint //隐藏标题栏

//    background: Image{
//       sourceSize: Qt.size(1024,600)
//       source: "qrc:/img/gg.png"
//    }

    //主界面的入口
    App{}
}
